package com.heima.article;

import com.heima.feigns.WemediaFeign;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @author lo
 * @date 2021/9/21
 */
@SpringBootTest
@RunWith(SpringRunner.class)
public class Mytest {

    @Autowired
    WemediaFeign wemediaFeign;
    @Test
    public void name() {
        ResponseResult<WmUser> sunwukong = wemediaFeign.findByName("sunwukong");
        Integer code = sunwukong.getCode();
        System.out.println(code);
    }
}
